home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 May / cd joy 71No13.iso / pc / demos / eurosoc / source / eurodefs.h < prev    next >
C/C++ Source or Header  |  1996-03-19  |  4KB  |  219 lines

  1. #ifndef BYTE
  2. typedef         unsigned char BYTE;
  3. #endif
  4.  
  5.  
  6. #define        EURO_friendly            0
  7. #define        EURO_championship        1
  8. #define        EURO_network_game        2
  9. #define        EURO_serial_game        3
  10. #define        EURO_modem_game        4
  11. #define        EURO_demomode            5
  12. #define        EURO_simulation        6
  13. #define        EURO_practice            7
  14. #define        EURO_wireplay            8
  15.  
  16. // [ Country Data ]                         
  17.  
  18. #define        Bulgaria                    0
  19. #define        Croatia                    1
  20. #define      Czech                        2
  21. #define        Denmark                    3
  22. #define        England                    4
  23. #define        France                    5
  24. #define        Germany                    6
  25. #define        Holland                    7
  26. #define        Italy                        8
  27. #define        Portugal                    9
  28. #define        Romania                    10
  29. #define        Russia                    11
  30. #define        Scotland                    12
  31. #define        Spain                        13
  32. #define        Switzerland                14
  33. #define        Turkey                    15
  34.  
  35. // [ Venue Offsets ]                         
  36.  
  37. #define        London                    0        
  38. #define        Birmingham                1
  39. #define        Leeds                        2
  40. #define        Newcastle                3
  41. #define        Manchester                4
  42. #define        Liverpool                5
  43. #define        Sheffield                6
  44. #define        Nottingham                7
  45.  
  46. // [ Player name Data ]                         
  47.  
  48. #define        INITIAL_SURNAME        0
  49. #define        SURNAME                    1
  50. #define        FULL_NAME                2
  51.  
  52.  
  53. // Pseudo buffer info type
  54. typedef struct
  55.     { 
  56.     BYTE  *pseudo_start;
  57.     long  pseudo_width;
  58.     long  pseudo_height;
  59.     long    window_width;
  60.     long    window_height;
  61.     }
  62.     pseudo_info;
  63.  
  64. // Texture page info type
  65. typedef struct
  66.     { 
  67.     BYTE  *page_start;
  68.     unsigned int page_width;
  69.     unsigned int page_height;
  70.     }
  71.     texture_info;
  72.  
  73. // DAT offset file format type
  74. typedef struct {
  75.     unsigned    long    offset;
  76.     unsigned    long    size;
  77.     }
  78.     offset_defn;
  79.  
  80. // Bounding Box info type
  81. typedef struct {
  82.     signed    short         BoundingBoxLeft;
  83.     signed    short         BoundingBoxTop;
  84.     signed    short         BoundingBoxRight;
  85.     signed    short         BoundingBoxBottom;
  86.     }
  87.     box_info;
  88.  
  89. #define    MAX_ANIMATIONS            8
  90. #define    CONT_ANIM                2
  91. #define    RUN_ONCE                    0
  92.  
  93. // Animating sprites info type
  94. typedef struct {
  95.     float                        StartFrame;
  96.     float                        EndFrame;
  97.     float                        Counter;
  98.     float                        AnimationSpeed;
  99.     signed     char          Bounding_box;
  100.     unsigned char            Flags;
  101.     int                        xposn, yposn;
  102.     }
  103.     animation_info;
  104.  
  105. #define    MAX_DUMPS        128
  106.  
  107. // Screen Dump info type
  108. typedef struct {
  109.     char    DumpFlag;
  110.     short    DumpXpos;
  111.     short    DumpYpos;
  112.     short    DumpWidth;
  113.     short    DumpHeight;
  114.                    }dump_info;
  115.  
  116. // String and coordinates for headings on tables.
  117. typedef struct {
  118.     int    xposn;
  119.     int    yposn;
  120.     short    string;
  121.                    }header_info;
  122.  
  123. // Coordinates for team names within group tables.
  124. typedef struct {
  125.     int    xposn;
  126.     int    yposn;
  127.                    }Coord_info;
  128.  
  129. // Coordinates and image data for country select images.
  130. typedef struct {
  131.     int    image_no;
  132.     int    xposn;
  133.     int    yposn;
  134.                    }TeamSel_Info;
  135.  
  136. // League table information.
  137. typedef struct {
  138.     char    played;
  139.     char    won;
  140.     char    drew;
  141.     char    lost;
  142.     short    goalsFor;
  143.     short    goalsAgainst;
  144.     signed short goalDiff;
  145.     char    points;
  146.                    }League_info;
  147.  
  148. // Euro Champioship fixture info.
  149. typedef struct {
  150.     char    HomeTeam;
  151.     char    AwayTeam;
  152.     int    fixXposn;
  153.     int    fixYposn;
  154.                     }fixture_info;
  155.  
  156. // Euro Champioship scores info.
  157. typedef struct {
  158.     short    HomeScore;
  159.     short    AwayScore;
  160.     
  161.     char    AfterExtra;
  162.     char    AfterPens;
  163.     char    HomePens;    
  164.     char    AwayPens;    
  165.     char    WinningTeam;    
  166.     char    Message;    
  167.  
  168.                     }results_info;
  169.  
  170.  
  171. #define    AUTOPLAYER            -1
  172. #define    PLYR_NOT_CHOSEN    12
  173.  
  174. // User info.
  175. typedef struct {
  176.     char            team;            
  177.     signed char    player;
  178.     char            control;
  179.     char            TeamHAflag;
  180.                     }user_info;
  181.  
  182. // User championship info.
  183. typedef struct {
  184.     char            NoOfUsers;            
  185.                     }euro_info;
  186.  
  187. typedef struct {
  188.     short            scored;
  189.     short            conceeded;
  190.                 }result_data;
  191.  
  192. // Past History info.
  193. typedef struct {
  194.     result_data    history[10];
  195.                     }history_info;
  196.  
  197. // Slider bar info type
  198. typedef struct
  199.     { 
  200.     short    windowposn;            // internal ypos value.
  201.     short    minx;                    // top left of inner section of bar.
  202.     short miny;                    // top left of inner    section of bar.
  203.     short    maxx;                    // bottom right of inner section of bar.
  204.     short maxy;                    // bottom right of inner section of bar.
  205.     short elements;            // number of elements in list.
  206.     short page_elements;        // number of elements displayed on screen.
  207.     }
  208.     slider_info;
  209.  
  210.  
  211. // Slider bar info type
  212. typedef struct
  213.     { 
  214.     char    team;
  215.     short xposn;
  216.     short yposn;
  217.     }
  218.     qualify_info;
  219.